const express = require('express')
const router = express.Router()
const service = require('../service/userTelService')
const PATH = '/userTel'
// service.queryById(1)
router.get('/hello', function (req, res) {
  res.send('userTel Hello World')
})

router.get('/queryAll', async (req, res) => {
  const data = await service.queryAll()
  res.json(data)
})

module.exports = (app) => {
  app.use(PATH, router)
}
